<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h2>Django模板中的过滤器语法</h2>

<p>message:{{ message | upper }}</p>
<p>username:{{ username | lower }}</p>
<p>username:{{ username | length }}</p>

<p>date:{{ dat | date:'Y-m-d' }}</p>
<p>date:{{ dat | date:'H:i:s' }}</p>
<p>date:{{ dat | date:'Y-m-d H:i:s' }}</p>


</body>
</html>